package com.ruoyi.user.api.feign;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.edu.api.domain.EduCourse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 订单微服务远程调用接口
 *
 * @author isahino
 * @version 1.0
 * @date 2023/9/23 10:37
 */
@FeignClient("ruoyi-user")
public interface IUserClient {
    /**
     * 远程调用，order模块创建订单时向user模块获取会员信息
     *
     * @param memberId 会员id
     * @return 会员详细信息
     */
    @RequestMapping("/user/member/{memberId}")
    AjaxResult getMemberInfo(@PathVariable("memberId") String memberId);
}
